﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace API.Models.Repository
{
    public class INVOICE_LINES_Repository : GenericRepository<PartnerDbContext, WH_INVOICE_LINES>
    {
        public override IQueryable<WH_INVOICE_LINES> Find(System.Linq.Expressions.Expression<Func<WH_INVOICE_LINES, bool>> predicate)
        {
            IQueryable<WH_INVOICE_LINES> query = _entities.WH_INVOICE_LINES;
                //.Include("ITEM")
                //.Include("ITEM_MAPPED")
                //.Include("ITEM.COMPANY")
                //.Include("ITEM_MAPPED.COMPANY");

            if (predicate != null)
                query = query.Where(predicate);

            return query;
        }
    }
}